<template>
  <div id="app">
    <el-container>
      <el-header>
        <Manu/>
      </el-header>
      <el-divider />
      <el-main>
        <!-- 搜索框 -->
        <el-card>
          <SearchBar @searchData="searchMsg" />
        </el-card>
        <el-divider />
        <!-- 关键词分析表格 -->
        <el-card>
          <KeywordAnalysis />
        </el-card>
        <el-divider />
        <!-- 评论 -->
        <el-card>
          <Comments :msg="searchData" />
        </el-card>
      </el-main>
    </el-container>
  </div>
</template>

<script setup>
import SearchBar from './components/SearchBar.vue';
import KeywordAnalysis from './components/KeywordAnalysis.vue';
import Comments from "@/views/components/Comments.vue";
import {Fold} from "@element-plus/icons-vue";
import Manu from "@/views/components/Manu.vue"
import {ref} from "vue";

const searchData = ref()

function searchMsg(data) {
  searchData.value = data;
}


</script>

<style>
#app {
  font-family: 'Arial', sans-serif;
  color: #333;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

el-header {
  background-color: #20a0ff;
  color: white;
  text-align: center;
  font-size: 24px;
  padding: 15px;
}

el-main {
  padding: 20px;
}

.block-col-2 .demonstration {
  display: block;
  color: var(--el-text-color-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.block-col-2 .el-dropdown-link {
  display: flex;
  align-items: center;
}
</style>
